package com.example.boot.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/log")
@Slf4j
public class LogController {

    @ResponseBody
    @RequestMapping("/a")
    public String a() {
        log.info("INFO这是日志信息");
        log.warn("WARN这是日志信息");
        log.error("error这是日志信息");
        log.debug("debug这是日志信息");
        return "success";
    }

}
